import '../network/client.dart';
import '../network/response_data.dart';

/// 意见反馈接口
class FeedBackApi {
  static const String API_FEEDBACK_SAVE = "/api/feed-back/save";

  /// 意见反馈
  /// [content] 反馈内容
  /// [contact] 联系方式
  /// [screenshotIds] 反馈图片ID数组
  static Future<ResponseData> save(
    String content,
    String contact,
    List screenshotIds,
  ) async {
    return client.post(
      API_FEEDBACK_SAVE,
      data: {
        "content": content,
        "contact": contact,
        "screenshotIds": screenshotIds,
      },
    );
  }
}
